<?php if($tourism_goods->num_rows() > 0): ?>
    <?php foreach($tourism_goods->result() as $item): ?>
    <li>
        <a href="<?php echo site_url('tourism/goods/info/'.$item->goods_attr_id) ?>">
            <img src="<?php echo $this->config->show_image_url($item->images, '300-300')?>">
            <p><?php echo $item->goods_name ?></p>
            <i class="city-price">
                <span>¥</span><?php echo $item->shop_price ?>
            </i>
            <div class="city-site"><?php $detail = explode(' ', $item->detail); if(!empty($detail)){echo $detail[0];} ?></div>
        </a>
    </li>
    <?php endforeach ?>
<?php endif ?>